package com.hand.springcloud.entities;


import java.io.Serializable;

/**
 * @ Description   :  商品实体类
 * @ Author        :  xiong.yilin@hand-china.com
 * @ CreateDate    :  2019/9/6 11:33
 */
public class Product implements Serializable {

    private Long pid;   //主键
    private String productName;     //产品名称
    private String dbSource;    //来自哪个数据库，因为微服务架构可以一个服务对应一个数据库，同一个信息被存储到不同的数据库

    public Product(String productName) {
        this.productName = productName;
    }

    public Product(Long pid, String productName, String dbSource) {
        this.pid = pid;
        this.productName = productName;
        this.dbSource = dbSource;
    }

    public Product() {
    }

    public Long getPid() {
        return pid;
    }

    public void setPid(Long pid) {
        this.pid = pid;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getDbSource() {
        return dbSource;
    }

    public void setDbSource(String dbSource) {
        this.dbSource = dbSource;
    }
}
